package com.tjzx.entity;

/**
 * EipNoticeInfoGroupReaderId entity. @author MyEclipse Persistence Tools
 */

public class EipNoticeInfoGroupReaderId implements java.io.Serializable {

	// Fields

	private Integer igrid;
	private String niid;
	private Integer staticGroupNo;

	// Constructors

	/** default constructor */
	public EipNoticeInfoGroupReaderId() {
	}

	/** full constructor */
	public EipNoticeInfoGroupReaderId(Integer igrid, String niid,
			Integer staticGroupNo) {
		this.igrid = igrid;
		this.niid = niid;
		this.staticGroupNo = staticGroupNo;
	}

	// Property accessors

	public Integer getIgrid() {
		return this.igrid;
	}

	public void setIgrid(Integer igrid) {
		this.igrid = igrid;
	}

	public String getNiid() {
		return this.niid;
	}

	public void setNiid(String niid) {
		this.niid = niid;
	}

	public Integer getStaticGroupNo() {
		return this.staticGroupNo;
	}

	public void setStaticGroupNo(Integer staticGroupNo) {
		this.staticGroupNo = staticGroupNo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof EipNoticeInfoGroupReaderId))
			return false;
		EipNoticeInfoGroupReaderId castOther = (EipNoticeInfoGroupReaderId) other;

		return ((this.getIgrid() == castOther.getIgrid()) || (this.getIgrid() != null
				&& castOther.getIgrid() != null && this.getIgrid().equals(
				castOther.getIgrid())))
				&& ((this.getNiid() == castOther.getNiid()) || (this.getNiid() != null
						&& castOther.getNiid() != null && this.getNiid()
						.equals(castOther.getNiid())))
				&& ((this.getStaticGroupNo() == castOther.getStaticGroupNo()) || (this
						.getStaticGroupNo() != null
						&& castOther.getStaticGroupNo() != null && this
						.getStaticGroupNo()
						.equals(castOther.getStaticGroupNo())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getIgrid() == null ? 0 : this.getIgrid().hashCode());
		result = 37 * result
				+ (getNiid() == null ? 0 : this.getNiid().hashCode());
		result = 37
				* result
				+ (getStaticGroupNo() == null ? 0 : this.getStaticGroupNo()
						.hashCode());
		return result;
	}

}